package com.zsc.shixun.model.notice;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 公告更改VO
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/17
 */
@Data
public class NoticeUpdateVO {
    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "必须填id")
//    @NotBlank(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "公告内容")
    @NotNull(message = "必须填公告内容")
    @NotBlank(message = "公告内容不能为空")
    private String content;

    @ApiModelProperty(value = "公告标题")
    @NotNull(message = "必须填公告标题")
    @NotBlank(message = "公告标题不能为空")
    private String title;

    @ApiModelProperty(value = "发布者 ")
    @NotNull(message = "必须填发布者")
    @NotBlank(message = "发布者不能为空")
    private String name;
}
